scale

Scales the transformation matrix by a given factor in both x and y directions.

Return

A new affine transformation matrix with the scaling applied.

Parameters

factor

The scaling factor to apply to both x and y dimensions.


Scales the transformation matrix by a given vector. The x and y components of the vector represent the scaling factors in the respective directions.

Return

A new affine transformation matrix with the scaling applied.

Parameters

vector

The vector to scale the matrix.


Scales the transformation matrix by given factors in the x and y directions.

Scaling is composed on the right of this transformation. In other words, the scale is applied to an input before this matrix, so the linear part is scaled by columns while the existing translation remains unchanged. This is consistent with times and with AffineTransformationMatrix1.scale.

Return

A new affine transformation matrix with the scaling applied.

Parameters

x

The scaling factor for the x-direction.

y

The scaling factor for the y-direction.